package hu.kisprof.quiz.model.bean;

import java.io.Serializable;

public class Edu implements Comparable<Edu>, Serializable{
	/**
	 * 
	 */
	private static final long serialVersionUID = -764729899253262677L;

	private int id;
	private String name;
	
	
	public Edu(int id, String name){
		this.id=id;
		this.name=name;
	}
	
	
	
	
	
	public int getId() {
		return id;
	}
	public void setId(int id) {
		this.id = id;
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}

	public String toString(){
		return name;
		
	}



	@Override
	public int compareTo(Edu o) {
		if(id<o.id){
			return -1;
		}else if (id>o.id){
			return 1;
		}else{
			return 0;
		}
	}
	
	
}
